import axiosInstance from "@/utls/axios";

export function RegisterServer(data){
  return axiosInstance.post('/user/register',data) 
}//注册
export function LoginServer(data){
  return axiosInstance.post('/user/login',data)
}//登录
export function GetUserInfoServer(){
  return axiosInstance.get('/user/getuserInfo')
}//获取个人信息
export function EditUserInfoServer(data){
  return axiosInstance.patch('/user/edituserInfo',data)
}//修改个人信息
export function PasswordServer(data){
  return axiosInstance.patch('/user/password',data)
}//修改个人密码




export function AddNewRoomServer(data){
  return axiosInstance.post('/admin/addroom',data) 
}//新增会议室
export function GetRoomListServer(data){
  return axiosInstance.post('/admin/searchroom',data)
}//查询会议室
export function GetRoomServer(data){
  return axiosInstance.post('/admin/getroom',data)
}//查询单个会议室
export function EditRoomServer(data){
  return axiosInstance.patch('/admin/changeroom',data)
}//修改会议室
export function DeleteRoomServer(data){
  return axiosInstance.post('/admin/deleteroom',data)
}//删除会议室
export function AuditUserServer(data){
  return axiosInstance.post('/admin/changeuserstatus',data)
}//修改用户注册申请状态
export function DeleteUserServer(data){
  return axiosInstance.post('/admin/deleteuserstatus',data)
}//删除用户注册申请
export function GetUserListServer(){
  return axiosInstance.get('/admin/searchuserstatus')
}//查询用户注册申请




export function GetCancelListServer(data){
  return axiosInstance.post('/staff/searchunsubscribeorder',data)
}//查询退订表
export function AudioCancelSever(data){
  return axiosInstance.post('/staff/unsubscribereview',data)
}//退订审核
export function GetRoomStatusServer(data){
  return axiosInstance.post('/staff/searchstatus',data)
}//查询会议室状态
export function AudioRoomStatusServer(data){
  return axiosInstance.post('/staff/changeroomstatus',data)
}//更改会议室状态



export function GetRoomArrayServer(data){
  return axiosInstance.post('/customer/searchroom',data)
}//查询所有会议室
export function BookRoomServer(data){
  return axiosInstance.post('/customer/bookroom',data)
}//预订会议室
export function GetReserveListServer(data){
  return axiosInstance.post('/customer/searchorder',data)
}//查询所有订单
export function PayServer(data){
  return axiosInstance.post('/customer/pay',data)
}//支付订单
export function CancelReserveServer(data){
  return axiosInstance.post('/customer/canunsubscribesearch',data)
}//可退订服务查询
export function CancelServer(data){
  return axiosInstance.post('/customer/unsubscribe',data)
}//退订操作
export function CancelListServer(data){
  return axiosInstance.post('/customer/unsubscribesearch',data)
}//退订订单查询
export function TimeServer(data){
  return axiosInstance.post('/customer/findroomtime',data)
}//预订会议室前置
